<div class="main-content">
    <h1><a name="Global Mediation Policies"></a>Global Mediation Policies</h1>

            <hr/>
            <h4 class="operation-heading"><a name="getAllGlobalMediationPolicies"></a>Get all global level mediation policies
</h4> <code>GET https://apis.wso2.com/api/am/publisher/v1/mediation-policies</code>
            <p class="marked"></p>

            <p class="marked">This operation provides you a list of available all global level mediation policies.
</p>

            <h4 class="section-heading">OAuth 2.0 Scope</h4>
                <code>apim:api_view</code>
                <code>apim:mediation_policy_view</code>

            <h4 class="section-heading">
                Examples
            </h4>
            <h4 class="section-heading">
                <u></u>
            </h4>
                <div class="pointer" data-toggle="collapse" data-target="#request-getAllGlobalMediationPolicies">
                    <h5 class="section-heading">
                        Request
                            <span class="glyphicon glyphicon-collapse-down" aria-hidden="true"></span>
                    </h5>
                </div>
                    <div id="request-getAllGlobalMediationPolicies"class="pre collapse in"><code class="json">GET https://localhost:9443/api/am/publisher/v1/mediation-policies HTTP 1/1
Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8
</code></div>

                <div class="pointer" data-toggle="collapse" data-target="#response-getAllGlobalMediationPolicies">
                    <h5 class="section-heading">
                        Response
                            <span class="glyphicon glyphicon-collapse-down" aria-hidden="true"></span>
                    </h5>
                </div>
                    <div id="response-getAllGlobalMediationPolicies" class="pre collapse in"><code class="json">HTTP 1/1 200 OK
Content-Type: application/json

{
  &quot;count&quot; : 2,
  &quot;list&quot; : [ {
    &quot;name&quot; : &quot;header_sequence1&quot;,
    &quot;id&quot; : &quot;c34c35c9-cea9-44fc-8b9f-c61ff50f9aa3&quot;,
    &quot;type&quot; : &quot;IN&quot;
  }, {
    &quot;name&quot; : &quot;ample_eader_sequence1&quot;,
    &quot;id&quot; : &quot;7bdcb31c-5381-447e-8daa-e98a31002885&quot;,
    &quot;type&quot; : &quot;IN&quot;
  } ]
}</code></div>

                <h5 class="section-heading">CURL</h5>
                    <div class="pre"><code class="bash">curl -k -v -X GET &#39;https://localhost:9443/api/am/publisher/v1/mediation-policies&#39; -H &#39;Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8&#39; </code></div>

            <h4 class="section-heading">
                <u></u>
            </h4>
                <div class="pointer" data-toggle="collapse" data-target="#request-getAllGlobalMediationPolicies">
                    <h5 class="section-heading">
                        Request
                            <span class="glyphicon glyphicon-collapse-down" aria-hidden="true"></span>
                    </h5>
                </div>
                    <div id="request-getAllGlobalMediationPolicies"class="pre collapse in"><code class="json">GET https://localhost:9443/api/am/publisher/v1/mediation-policies HTTP/1.1
Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8
</code></div>

                <div class="pointer" data-toggle="collapse" data-target="#response-getAllGlobalMediationPolicies">
                    <h5 class="section-heading">
                        Response
                            <span class="glyphicon glyphicon-collapse-down" aria-hidden="true"></span>
                    </h5>
                </div>
                    <div id="response-getAllGlobalMediationPolicies" class="pre collapse in"><code class="json">HTTP/1.1 200 OK
Content-Type: application/json
{
  &quot;count&quot;:2,
  &quot;list&quot;:[
  {
    &quot;name&quot;:&quot;header_sequence1&quot;,
    &quot;id&quot;:&quot;c34c35c9-cea9-44fc-8b9f-c61ff50f9aa3&quot;,
    &quot;type&quot;:&quot;IN&quot;
  },
  {
    &quot;name&quot;:&quot;ample_eader_sequence1&quot;,.MediationPoliciesApiService
    &quot;id&quot;:&quot;7bdcb31c-5381-447e-8daa-e98a31002885&quot;,
    &quot;type&quot;:&quot;IN&quot;
  }
  ],
  &quot;pagination&quot;:null
}
</code></div>

                <h5 class="section-heading">CURL</h5>
                    <div class="pre"><code class="bash">curl -k -H &quot;Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8&quot; https://localhost:9443/api/am/publisher/v1/mediation-policies
</code></div>


            <h4 class="section-heading" id="scroll-to">Parameters</h4>
            <table class="table table-hover">
                <colgroup>
                    <col style="width: 10%;"/>
                    <col style="width: 20%;"/>
                    <col style="width: 40%;"/>
                    <col style="width: 10%;"/>
                    <col style="width: 20%;"/>
                </colgroup>
                <thead>
                <tr class="active">
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                    <th>Schema</th>
                    <th>Default</th>
                </tr>
                </thead>
                    <tr>
                        <td class="parameter">
                            
                            <span class="param-in">Query </span>
                            
                            
                            
                        </td>
                        <td class="param-name">
                            <p>limit</p>
                            <p class="param-required">
                                
                                optional
                            </p>
                        </td>
                        <td>
                            <p class="param-description marked">Maximum size of resource array to return.
</p>
                        </td>
                        <td>
                            <span class="param-type">
                                Integer
                            </span>
                        </td>
                        <td>
                            <p class="marked">25</p>
                        </td>
                    </tr>
                    <tr>
                        <td class="parameter">
                            
                            <span class="param-in">Query </span>
                            
                            
                            
                        </td>
                        <td class="param-name">
                            <p>offset</p>
                            <p class="param-required">
                                
                                optional
                            </p>
                        </td>
                        <td>
                            <p class="param-description marked">Starting point within the complete list of items qualified.
</p>
                        </td>
                        <td>
                            <span class="param-type">
                                Integer
                            </span>
                        </td>
                        <td>
                            <p class="marked">0</p>
                        </td>
                    </tr>
                    <tr>
                        <td class="parameter">
                            
                            <span class="param-in">Query </span>
                            
                            
                            
                        </td>
                        <td class="param-name">
                            <p>query</p>
                            <p class="param-required">
                                
                                optional
                            </p>
                        </td>
                        <td>
                            <p class="param-description marked">-Not supported yet-</p>
                        </td>
                        <td>
                            <span class="param-type">
                                String
                            </span>
                        </td>
                        <td>
                            <p class="marked"></p>
                        </td>
                    </tr>
                    <tr>
                        <td class="parameter">
                            
                            
                            
                            <span class="param-in">Header </span>
                            
                        </td>
                        <td class="param-name">
                            <p>If-None-Match</p>
                            <p class="param-required">
                                
                                optional
                            </p>
                        </td>
                        <td>
                            <p class="param-description marked">Validator for conditional requests; based on the ETag of the formerly retrieved
variant of the resource.
</p>
                        </td>
                        <td>
                            <span class="param-type">
                                String
                            </span>
                        </td>
                        <td>
                            <p class="marked"></p>
                        </td>
                    </tr>
            </table>

            <h4 class="section-heading">Responses</h4>

            <table class="table table-hover">
                <colgroup>
                    <col style="width: 15%;"/>
                    <col style="width: 70%;"/>
                    <col style="width: 15%;"/>
                </colgroup>
                <thead>
                <tr class="active">
                    <th>HTTP Code</th>
                    <th>Description</th>
                    <th>Schema</th>
                </tr>
                </thead>
                <tbody>
                    <tr>
                        <td class="parameter"><p class="marked">200</p></td>
                        <td class="parameter"><p class="marked">OK. List of mediation policies is returned. </p></td>
                        <td class="parameter">
                            <span class="parameter">
                                    <a href="#!/models#MediationList">MediationList</a>
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td class="parameter"><p class="marked">304</p></td>
                        <td class="parameter"><p class="marked">Not Modified. Empty body because the client has already the latest version of the requested resource (Will be supported in future). </p></td>
                        <td class="parameter">
                            <span class="parameter">
                                    
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td class="parameter"><p class="marked">406</p></td>
                        <td class="parameter"><p class="marked">Not Acceptable. The requested media type is not supported </p></td>
                        <td class="parameter">
                            <span class="parameter">
                                    <a href="#!/models#Error">Error</a>
                            </span>
                        </td>
                    </tr>
                </tbody>
            </table>
</div>
